<?php
   
   /* 是否修改密码
    * @param uId 得到用户的原始密码
    * @param uPass 与原始密码进行判断
    *  */
    header("Content-type:text/html;charset=utf-8");

    require_once '../inc/user.php';
    if (isset($_POST['uPass'])) 
    {
        $curUser=getUserId($_POST['uId']);
        $curPass="";
        $curPass=$curUser["uPass"];
        if ($_POST['uPass']==$curPass)
        {
            echo "";
        }
        else 
        {
            $new="";
            $new.=<<<html
			<div class="spanAccount"><span>重复密码</span></div>
			<div class="inp"><input type="password" name="uPass2" id="uPass2" oninput="OnInput (event)"/></div>
html;
            echo $new;
       
        }
    }
?>